package com.shilei.decorator;

import com.shilei.GameObject;

import java.awt.*;

/**
 * @description: GameObject装饰类
 * @author: 81271
 * @date: 2020-04-16 21:09
 */
public abstract class GODecorator extends GameObject {

    public GameObject gameObject;

    public GODecorator(GameObject gameObject) {
        this.gameObject = gameObject;
    }

    public abstract void paint(Graphics g);

    public GameObject getGameObject() {
        return gameObject;
    }
}
